﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="kiemtra_lencap.ascx.cs" Inherits="eDream.admin.kiemtra_lencap" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<div style="margin-top: 20px">
    <div class="cloum_text">
        Từ ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteFrom" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
    <div class="cloum_text">
        Đến ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteTo" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>

    <div class="cloum_1">
        <dx:ASPxButton ID="btnTim" runat="server" Text="Kiểm tra" Theme="iOS" AutoPostBack="false">
            <ClientSideEvents Click="function(s, e) {cpanl.PerformCallback('k');}" />
        </dx:ASPxButton>
    </div>
    <div class="cloum_1">
        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Xuất exel" Theme="iOS" AutoPostBack="false">
            <ClientSideEvents Click="function(s, e) {cpanl.PerformCallback('x');}" />
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <div class="grvConten">
        <dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" ClientInstanceName="cpanl" OnCallback="ASPxCallbackPanel1_Callback" Width="100%">
            <PanelCollection>
                <dx:PanelContent>
                    <dx:ASPxGridView ID="grvResult" runat="server" Theme="DevEx" Width="100%" AutoGenerateColumns="False" KeyFieldName="index" OnLoad="grvResult_Load">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="STT" ShowInCustomizationForm="True" VisibleIndex="0" FieldName="ID" ReadOnly="True" Width="7%">
                                <EditFormSettings Visible="False" />
                                <HeaderStyle HorizontalAlign="Center" />
                                <CellStyle HorizontalAlign="Center"></CellStyle>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Tài khoản" VisibleIndex="1" FieldName="UserName" Width="13%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Họ và tên" VisibleIndex="2" FieldName="Fullname" Width="20%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Cấp bậc" VisibleIndex="3" FieldName="capbac" Width="15%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>

                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Doanh số nhóm" VisibleIndex="5" FieldName="Doanhso" Width="10%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>
                                <FooterCellStyle ForeColor="Red" Font-Bold="true"></FooterCellStyle>
                            </dx:GridViewDataTextColumn>

                            <dx:GridViewDataTextColumn FieldName="soluongF1" Caption="Số lượng F1" ShowInCustomizationForm="True" VisibleIndex="6" Width="20%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="soluongF2" Caption="Số lượng F2" ShowInCustomizationForm="True" VisibleIndex="6" Width="20%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>

                            <dx:GridViewDataTextColumn FieldName="luonghuong" Caption="% doanh số" ShowInCustomizationForm="True" VisibleIndex="6" Width="20%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Lương" VisibleIndex="5" FieldName="luongphaitra" Width="10%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>
                                <FooterCellStyle ForeColor="Red" Font-Bold="true"></FooterCellStyle>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="dateFrom1" Caption="Từ ngày" ShowInCustomizationForm="True" VisibleIndex="6" Width="20%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="dateTo1" Caption="Tới ngày" ShowInCustomizationForm="True" VisibleIndex="6" Width="20%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center" />
                                <CellStyle Wrap="True"></CellStyle>

                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowFooter="true" ShowFilterRow="true" ShowFilterBar="Auto" />
                        <TotalSummary>
                            <dx:ASPxSummaryItem FieldName="Dadong" SummaryType="Sum" DisplayFormat="C0" />
                        </TotalSummary>
                        <SettingsPager Mode="ShowAllRecords"></SettingsPager>
                        <SettingsBehavior AllowSort="true" />
                    </dx:ASPxGridView>

                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxCallbackPanel>
        <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>

    </div>

</div>
